<extend file='app/home/master'/>

<block name="content">
	<div id="mainbody">
		<div class="blogs">
			<div id="index_view">
				<foreach from="$category" key="$k" value="$v">
				<h2 class="t_nav"><a href="{{__ROOT__}}/index.html">首页</a><a href="{{__ROOT__}}/listcid/{{$v['cid']}}.html">{{$v['cname']}}</a></h2>
				<h1 class="c_titile">{{$v['ctitle']}}</h1>
				<p class="box">发布时间：{{$v['sendtime']}}<span>编辑：{{$v['author']}}</span>阅读：{{$v['click']}}</p>
				<ul>
					<p>
						{{$v['digest']}}
					</p>
				</ul>
				</foreach>
				<div class="share">
					<!-- Baidu Button BEGIN -->
					<div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare"> <span class="bds_more">分享到：</span> <a class="bds_qzone"></a> <a class="bds_tsina"></a> <a class="bds_tqq"></a> <a class="bds_renren"></a> <a class="bds_t163"></a> <a class="shareCount"></a> </div>
					<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=6574585" ></script>
					<script type="text/javascript" id="bdshell_js"></script>
					<script type="text/javascript">
						document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
					</script>
					<!-- Baidu Button END -->
				</div>
				<div class="otherlink">
					<h2>最新文章</h2>
					<ul>
						<foreach from="$category" key="$kk" value="$vv">
							<li><a href="{{__ROOT__}}/content/{{$v['aid']}}.html" title="ÎÒÏ£ÍûÎÒµÄ°®ÇéÊÇÕâÑùµÄ">{{$vv['ctitle']}}</a></li>
						</foreach>
					</ul>
				</div>
			</div>
			<!--bloglist end-->
			<aside>
				<div class="search">
					<form class="searchform" method="get" action="#">
						<input type="text" name="s" value="Search" onfocus="this.value=''" onblur="this.value='Search'">
					</form>
				</div>
				<div class="sunnav">
					<ul>
						<foreach from="$article_catgory" key="$k" value="$v">
							<li><a href="{{__ROOT__}}/listcid/{{$v['cid']}}.html" target="_blank" title="ÍøÕ¾½¨Éè">{{$v['cname']}}</a></li>
						</foreach>
					</ul>
				</div>
				<div class="tuijian">
					<h2>栏目更新</h2>
					<ol>
						<foreach from="$ctitle" key="$k" value="$v">
							<li><span><strong>{{$v['aid']}}</strong></span><a href="{{__ROOT__}}/content/{{$v['aid']}}.html">{{$v['ctitle']}}</a></li>
						</foreach>
					</ol>
				</div>
				<div class="toppic">
					<h2>图文并茂</h2>

					<ul>
						<?php foreach($article_catgory as $k=>$v) {?>
						<li>
							<a href="{{__ROOT__}}/content/{{$v['aid']}}.html"><img src="{{__ROOT__}}/{{$v['thumb']}}">{{$v['ctitle']}}
								<p>{{$v['cname']}}</p>
							</a>
						</li>
						<?php }?>
					</ul>

				</div>
				<div class="clicks">
					<h2>猜你喜欢</h2>
					<ol>
						<foreach from="$articleTitle" key="$key" value="$v">
							<li><span>
                <foreach from="$v['tag']" key="$k" value="$vv" >
					<!--'listpid/{pid}.html'根据标签找文章-->
					<!--{{__ROOT__}}/listpid/{{$vv['tid']}}.html-->
					<a href="{{__ROOT__}}/listpid/{{$vv['tid']}}.html">{{$vv['tname']}}</a>
				</foreach>
            </span><a href="{{__ROOT__}}/content/{{$v['aid']}}.html">{{$v['ctitle']}}</a></li>
						</foreach>
					</ol>
				</div>
			</aside>
		</div>
		<!--blogs end-->
	</div>


	<!--header end-->
</block>



